<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<jsp:include page="../../comunes/header.jsp" />
<h2>Editar Responsable de Zona</h2>
<form:form method="POST" modelAttribute="responsableZona">
   <table class="tbl_formulario">
      <tr><th>Empleado:</th>
         <td>
            <c:out value="${responsableZona.empleado.nombre} ${responsableZona.empleado.apellidoPaterno} ${responsableZona.empleado.apellidoMaterno}"/>
            <form:hidden path="llave.codigoEmpleado"/>
         </td>
      </tr>
      <tr><th>Zona:</th>
         <td>
            <c:out value="${responsableZona.zona.descripcion}" />
            <form:hidden path="llave.claveZona" />
         </td>
      </tr>
      <tr><th>Plantas:</th>
         <td>
            <form:radiobutton path="plantas" value="S" label="Si" />
            <form:radiobutton path="plantas" value="N" label="No"/>
         </td>
      </tr>
      <tr><th>Veh&iacute;culos:</th>
         <td>
            <form:radiobutton path="vehiculos" value="S" label="Si" />
            <form:radiobutton path="vehiculos" value="N" label="No"/>
         </td>
      </tr>
      <tr><th>Bombas:</th>
         <td>
            <form:radiobutton path="bombas" value="S" label="Si" />
            <form:radiobutton path="bombas" value="N" label="No" />
         </td>
      </tr>
      <tr><th>Comentarios:</th>
         <td>
            <form:input path="comentarios" size="30" maxlength="250" />
            <form:errors path="comentarios" cssClass="error" />
         </td>
      </tr>
      <tr>
         <td><form:hidden path="usuarioCreo" />
            <button type="reset" class="btn_regresar" title="Regresar">Regresar</button></td>
         <td><button type="submit" class="btn_guardar" title="Guardar">Guardar</button></td>
      </tr>
   </table>
</form:form><c:url var="regrUrl" value="/catalogos/responsablesz" />
<script type="text/javascript">
   $(document).ready(function() {
      $(".btn_regresar").click(function() {
         window.location.replace('${regrUrl}');
      });
   });
</script>
<jsp:include page="../../comunes/footer.jsp" />